﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HtmlAgilityPack;
using System.IO;

namespace SchemaMonitor.html
{
	[Serializable]
	public class CPhoto
	{
		public string Date;
		public string FilePath;
		public List<CComment> Comments;

		public CPhoto() { }


		public string FileName
		{
			get
			{
				return Path.GetFileName(FilePath);
			}
		}
		public string Id
		{
			get
			{
				return Path.GetFileNameWithoutExtension(FileName);
			}
		}
		public DateTime AsDate
		{
			get
			{
				return CHtml.ToDate(this.Date);
			}
		}
	}
}
